<html>
<head><meta charset="utf-8"><title>rustc has overflowed its stack · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc.20has.20overflowed.20its.20stack.html">rustc has overflowed its stack</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="172879701"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc%20has%20overflowed%20its%20stack/near/172879701" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc.20has.20overflowed.20its.20stack.html#172879701">(Aug 09 2019 at 19:01)</a>:</h4>
<p>Hey, I'm working on a PR <a href="https://github.com/rust-lang/rust/pull/63420" target="_blank" title="https://github.com/rust-lang/rust/pull/63420">https://github.com/rust-lang/rust/pull/63420</a></p>



<a name="172879712"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc%20has%20overflowed%20its%20stack/near/172879712" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc.20has.20overflowed.20its.20stack.html#172879712">(Aug 09 2019 at 19:01)</a>:</h4>
<p>and I'm getting this error ...</p>



<a name="172879715"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc%20has%20overflowed%20its%20stack/near/172879715" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc.20has.20overflowed.20its.20stack.html#172879715">(Aug 09 2019 at 19:01)</a>:</h4>
<div class="codehilite"><pre><span></span>thread &#39;rustc&#39; has overflowed its stack
fatal runtime error: stack overflow
error: Could not compile `core`.

Caused by:
  process didn&#39;t exit successfully: `/home/santiago/src/oss/rust1/build/bootstrap/debug/rustc --edition=2018 --crate-name core src/libcore/lib.rs --color always --error-format json --crate-type lib --emit=dep-info,metadata,link -C opt-level=2 -C metadata=027b61dfb739cfed -C extra-filename=-027b61dfb739cfed --out-dir /home/santiago/src/oss/rust1/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps --target x86_64-unknown-linux-gnu -C incremental=/home/santiago/src/oss/rust1/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/incremental -L dependency=/home/santiago/src/oss/rust1/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps -L dependency=/home/santiago/src/oss/rust1/build/x86_64-unknown-linux-gnu/stage1-std/release/deps` (signal: 6, SIGABRT: process abort signal)
command did not execute successfully: &quot;/home/santiago/src/oss/rust1/build/x86_64-unknown-linux-gnu/stage0/bin/cargo&quot; &quot;build&quot; &quot;--target&quot; &quot;x86_64-unknown-linux-gnu&quot; &quot;-j&quot; &quot;4&quot; &quot;--release&quot; &quot;--features&quot; &quot;panic-unwind backtrace compiler-builtins-c&quot; &quot;--manifest-path&quot; &quot;/home/santiago/src/oss/rust1/src/libstd/Cargo.toml&quot; &quot;--message-format&quot; &quot;json&quot;
expected success, got: exit code: 101
failed to run: /home/santiago/src/oss/rust1/build/bootstrap/debug/bootstrap build -i --stage 1 -j 4 src/libstd
</pre></div>



<a name="172879805"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc%20has%20overflowed%20its%20stack/near/172879805" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc.20has.20overflowed.20its.20stack.html#172879805">(Aug 09 2019 at 19:02)</a>:</h4>
<p>any pointer on how to see where the error is happening? I mean, other than checking where I'm screwing things up on the code</p>



<a name="172879840"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc%20has%20overflowed%20its%20stack/near/172879840" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc.20has.20overflowed.20its.20stack.html#172879840">(Aug 09 2019 at 19:03)</a>:</h4>
<p>hmm I guess maybe checking the log to see where may be an infinite recursion or something like that?</p>



<a name="172879864"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc%20has%20overflowed%20its%20stack/near/172879864" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc.20has.20overflowed.20its.20stack.html#172879864">(Aug 09 2019 at 19:03)</a>:</h4>
<p>for now I'm going to re-read the code but if someone has any trick to debug this would be appreciated</p>



<a name="172879909"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc%20has%20overflowed%20its%20stack/near/172879909" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc.20has.20overflowed.20its.20stack.html#172879909">(Aug 09 2019 at 19:04)</a>:</h4>
<p><span class="user-mention" data-user-id="116266">@Santiago Pastorino</span> you should be able to get a core dump</p>



<a name="172879917"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc%20has%20overflowed%20its%20stack/near/172879917" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc.20has.20overflowed.20its.20stack.html#172879917">(Aug 09 2019 at 19:04)</a>:</h4>
<p>might need <code>ulimit -c unlimited</code> prior to calling rustc</p>



<a name="172879933"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc%20has%20overflowed%20its%20stack/near/172879933" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc.20has.20overflowed.20its.20stack.html#172879933">(Aug 09 2019 at 19:04)</a>:</h4>
<p>and then <code>gdb ..../path/to/rustc core</code></p>



<a name="172881322"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc%20has%20overflowed%20its%20stack/near/172881322" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc.20has.20overflowed.20its.20stack.html#172881322">(Aug 09 2019 at 19:22)</a>:</h4>
<p><span class="user-mention" data-user-id="116122">@simulacrum</span> hey, let me see</p>



<a name="172881364"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc%20has%20overflowed%20its%20stack/near/172881364" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc.20has.20overflowed.20its.20stack.html#172881364">(Aug 09 2019 at 19:22)</a>:</h4>
<p>if the core file bit succeeds you should get a "core dumped" or something like that in the output</p>



<a name="172881382"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc%20has%20overflowed%20its%20stack/near/172881382" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc.20has.20overflowed.20its.20stack.html#172881382">(Aug 09 2019 at 19:22)</a>:</h4>
<p>it might get dumped to some odd directory though, I've not had to deal with rustc doing so in a while</p>



<a name="172881426"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc%20has%20overflowed%20its%20stack/near/172881426" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc.20has.20overflowed.20its.20stack.html#172881426">(Aug 09 2019 at 19:23)</a>:</h4>
<p>I guess should be something like</p>



<a name="172881432"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc%20has%20overflowed%20its%20stack/near/172881432" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc.20has.20overflowed.20its.20stack.html#172881432">(Aug 09 2019 at 19:23)</a>:</h4>
<p>so perhaps <code>find . -type f -name core</code> will be warranted, presuming your distro also doesn't eat it (e.g., IIRC ubuntu by default has some apport logic to hide core dumps from you)</p>



<a name="172881439"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc%20has%20overflowed%20its%20stack/near/172881439" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc.20has.20overflowed.20its.20stack.html#172881439">(Aug 09 2019 at 19:23)</a>:</h4>
<p><code>gdb "./x.py build blah blah" core</code> ?</p>



<a name="172881497"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc%20has%20overflowed%20its%20stack/near/172881497" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc.20has.20overflowed.20its.20stack.html#172881497">(Aug 09 2019 at 19:24)</a>:</h4>
<p>ah, no, <code>gdb build/x86.../stageN/bin/rustc core</code></p>



<a name="172881521"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc%20has%20overflowed%20its%20stack/near/172881521" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc.20has.20overflowed.20its.20stack.html#172881521">(Aug 09 2019 at 19:24)</a>:</h4>
<p>gdb loosely wants the executable that caused the coredump</p>



<a name="172881552"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc%20has%20overflowed%20its%20stack/near/172881552" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc.20has.20overflowed.20its.20stack.html#172881552">(Aug 09 2019 at 19:25)</a>:</h4>
<p>ahh yeah right</p>



<a name="172881555"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc%20has%20overflowed%20its%20stack/near/172881555" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc.20has.20overflowed.20its.20stack.html#172881555">(Aug 09 2019 at 19:25)</a>:</h4>
<p>the coredump contains the executable and arguments tha tproduced the core</p>



<a name="172881558"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc%20has%20overflowed%20its%20stack/near/172881558" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc.20has.20overflowed.20its.20stack.html#172881558">(Aug 09 2019 at 19:25)</a>:</h4>
<p>but the core dump is not being generated</p>



<a name="172881572"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc%20has%20overflowed%20its%20stack/near/172881572" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc.20has.20overflowed.20its.20stack.html#172881572">(Aug 09 2019 at 19:25)</a>:</h4>
<blockquote>
<p>the coredump contains the executable and arguments tha tproduced the core</p>
</blockquote>
<p>yeah yeah, I know that, I wasn't remembering how to generate it</p>



<a name="172881573"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc%20has%20overflowed%20its%20stack/near/172881573" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc.20has.20overflowed.20its.20stack.html#172881573">(Aug 09 2019 at 19:25)</a>:</h4>
<p>so you can just run <code>gdb coredump</code> and gdb will load the executable itself</p>



<a name="172881597"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc%20has%20overflowed%20its%20stack/near/172881597" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc.20has.20overflowed.20its.20stack.html#172881597">(Aug 09 2019 at 19:26)</a>:</h4>
<p>I guess you meant that the file should be generated, right?</p>



<a name="172881632"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc%20has%20overflowed%20its%20stack/near/172881632" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc.20has.20overflowed.20its.20stack.html#172881632">(Aug 09 2019 at 19:26)</a>:</h4>
<p>I think you won’t get coredump here because rustc panics it</p>



<a name="172881634"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc%20has%20overflowed%20its%20stack/near/172881634" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc.20has.20overflowed.20its.20stack.html#172881634">(Aug 09 2019 at 19:26)</a>:</h4>
<p>I can't find it</p>



<a name="172881653"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc%20has%20overflowed%20its%20stack/near/172881653" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc.20has.20overflowed.20its.20stack.html#172881653">(Aug 09 2019 at 19:26)</a>:</h4>
<blockquote>
<p>I think you won’t get coredump here because rustc panics it</p>
</blockquote>
<p>makes sense</p>



<a name="172881657"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc%20has%20overflowed%20its%20stack/near/172881657" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc.20has.20overflowed.20its.20stack.html#172881657">(Aug 09 2019 at 19:26)</a>:</h4>
<p>then? any other option? :)</p>



<a name="172881663"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc%20has%20overflowed%20its%20stack/near/172881663" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc.20has.20overflowed.20its.20stack.html#172881663">(Aug 09 2019 at 19:26)</a>:</h4>
<p>I think your best bet is to run the rustc command that failed under gdb directly and catch <code>rust_panic</code> or whatever that function is called that we have exactly for breaking on panics.</p>



<a name="172881677"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc%20has%20overflowed%20its%20stack/near/172881677" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc.20has.20overflowed.20its.20stack.html#172881677">(Aug 09 2019 at 19:27)</a>:</h4>
<p>but you will need to setup envvars that x.py sets up</p>



<a name="172881679"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc%20has%20overflowed%20its%20stack/near/172881679" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc.20has.20overflowed.20its.20stack.html#172881679">(Aug 09 2019 at 19:27)</a>:</h4>
<p><span aria-label="+1" class="emoji emoji-1f44d" role="img" title="+1">:+1:</span></p>



<a name="172881704"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc%20has%20overflowed%20its%20stack/near/172881704" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc.20has.20overflowed.20its.20stack.html#172881704">(Aug 09 2019 at 19:27)</a>:</h4>
<p>I have no idea what those are. We used to have <code>--on-fail=bash</code> that would spawn bash on such failure with environment set up, but it does not work anymore</p>



<a name="172881849"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc%20has%20overflowed%20its%20stack/near/172881849" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc.20has.20overflowed.20its.20stack.html#172881849">(Aug 09 2019 at 19:29)</a>:</h4>
<p>will try out later, thanks</p>



<a name="172891436"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc%20has%20overflowed%20its%20stack/near/172891436" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc.20has.20overflowed.20its.20stack.html#172891436">(Aug 09 2019 at 21:41)</a>:</h4>
<p>was going to try but ...</p>



<a name="172891448"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc%20has%20overflowed%20its%20stack/near/172891448" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc.20has.20overflowed.20its.20stack.html#172891448">(Aug 09 2019 at 21:42)</a>:</h4>
<p>is there a way to see exactly the <code>rustc</code> command with all the env vars that are being used</p>



<a name="172891496"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc%20has%20overflowed%20its%20stack/near/172891496" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc.20has.20overflowed.20its.20stack.html#172891496">(Aug 09 2019 at 21:42)</a>:</h4>
<p>I see this ...</p>



<a name="172891500"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc%20has%20overflowed%20its%20stack/near/172891500" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc.20has.20overflowed.20its.20stack.html#172891500">(Aug 09 2019 at 21:42)</a>:</h4>
<p><code>/home/santiago/src/oss/rust1/build/bootstrap/debug/rustc --edition=2018 --crate-name core src/libcore/lib.rs --color always --error-format json --crate-type lib --emit=dep-info,metadata,link -C opt-level=2 -C metadata=027b61dfb739cfed -C extra-filename=-027b61dfb739cfed --out-dir /home/santiago/src/oss/rust1/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps --target x86_64-unknown-linux-gnu -C incremental=/home/santiago/src/oss/rust1/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/incremental -L dependency=/home/santiago/src/oss/rust1/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps -L dependency=/home/santiago/src/oss/rust1/build/x86_64-unknown-linux-gnu/stage1-std/release/deps</code></p>



<a name="172891504"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc%20has%20overflowed%20its%20stack/near/172891504" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc.20has.20overflowed.20its.20stack.html#172891504">(Aug 09 2019 at 21:42)</a>:</h4>
<p>but if I run that I get ...</p>



<a name="172891514"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc%20has%20overflowed%20its%20stack/near/172891514" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc.20has.20overflowed.20its.20stack.html#172891514">(Aug 09 2019 at 21:42)</a>:</h4>
<div class="codehilite"><pre><span></span>thread &#39;main&#39; panicked at &#39;RUSTC_STAGE was not set: NotPresent&#39;, src/libcore/result.rs:999:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
</pre></div>



<a name="172891518"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc%20has%20overflowed%20its%20stack/near/172891518" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc.20has.20overflowed.20its.20stack.html#172891518">(Aug 09 2019 at 21:42)</a>:</h4>
<p>I can prepend RUSTC_STAGE=1</p>



<a name="172891520"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc%20has%20overflowed%20its%20stack/near/172891520" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc.20has.20overflowed.20its.20stack.html#172891520">(Aug 09 2019 at 21:42)</a>:</h4>
<p>but then ...</p>



<a name="172891532"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc%20has%20overflowed%20its%20stack/near/172891532" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc.20has.20overflowed.20its.20stack.html#172891532">(Aug 09 2019 at 21:43)</a>:</h4>
<div class="codehilite"><pre><span></span>thread &#39;main&#39; panicked at &#39;RUSTC_SYSROOT was not set&#39;, src/libcore/option.rs:1034:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
</pre></div>



<a name="172891540"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc%20has%20overflowed%20its%20stack/near/172891540" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc.20has.20overflowed.20its.20stack.html#172891540">(Aug 09 2019 at 21:43)</a>:</h4>
<p>is there a way to see everything?</p>



<a name="172891548"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc%20has%20overflowed%20its%20stack/near/172891548" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc.20has.20overflowed.20its.20stack.html#172891548">(Aug 09 2019 at 21:43)</a>:</h4>
<p>included env vars</p>



<a name="172891918"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc%20has%20overflowed%20its%20stack/near/172891918" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc.20has.20overflowed.20its.20stack.html#172891918">(Aug 09 2019 at 21:49)</a>:</h4>
<p><span class="user-mention" data-user-id="123586">@nagisa</span> <span aria-label="point up" class="emoji emoji-1f446" role="img" title="point up">:point_up:</span></p>



<a name="172891949"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc%20has%20overflowed%20its%20stack/near/172891949" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc.20has.20overflowed.20its.20stack.html#172891949">(Aug 09 2019 at 21:49)</a>:</h4>
<p>probably not easily</p>



<a name="172892009"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc%20has%20overflowed%20its%20stack/near/172892009" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc.20has.20overflowed.20its.20stack.html#172892009">(Aug 09 2019 at 21:50)</a>:</h4>
<p>I think it may be easier to just read the code and figure out what the problem is :P</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>